﻿using Forum.Model.Entity;
using Forum.Model.Pager;
using Forum.Model.Request;
using Microsoft.AspNetCore.Http;

namespace Forum.Service.Interface
{
    public interface IPostService
    {
        Post? GetById(string id);
        int GetViewsCount(string id);
        bool Delete(string id);
        Post Insert(Post post);
        Post Update(Post post);
        string UploadImage(IFormFile file);
        List<string> GetImages(Post post);
        IPagedList<Post> GetPagedList(PostQueryParameters param);
    }
}